#!/bin/bash

case $1 in 
"start") {
    for i in vm110 vm111 vm112
    do
        ssh $i "/opt/zookeeper-3.7.1/bin/zkServer.sh start"
    done
}
;;
"stop") {
    for i in vm110 vm111 vm112
    do
        ssh $i "/opt/zookeeper-3.7.1/bin/zkServer.sh stop"
    done
}
;;
"status") {
    for i in vm110 vm111 vm112
    do
        ssh $i "/opt/zookeeper-3.7.1/bin/zkServer.sh status"
    done
}
;;
esac